import {getOfficialWarehouseList} from "@/api/warehouse";
import {deepCopy} from "@/utils";

export default {
  name: 'warehouseMixin',
  data(){
    return {
      officialWarehouseList: [],
    }
  },
  methods:{
    // 获取仓库
    getOfficialWarehouseList(params = {}){
      getOfficialWarehouseList(params)
        .then(res=>{
          this.officialWarehouseList = deepCopy(res.data)
          this.finishWarehouseApi()
        })
    },
    // 获取完api后处理
    finishWarehouseApi(){

    },
  },
}
